<template>
  <div class="my-page">
    <img src="http://liufusong.top:8080/img/profile/bg.png" alt="" />
    <div class="top">
      <div class="touxiang">
        <img
          src="https://pic1.zhimg.com/50/v2-5c20ef717fc985e1e43712d6d947e251_720w.jpg?source=1940ef5c"
          alt=""
        />
      </div>
      <div class="user">
        <div class="user-name">游客</div>
        <van-button class="login" type="primary" size="normall" to="/login"
          >去登录</van-button
        >

      </div>

    </div>
    <van-grid :column-num="3" class="list"  :border='false'>
      <van-grid-item icon="star-o" text="我的收藏"  to="/collect"/>
      <van-grid-item icon="wap-home-o" text="我的出租" to="/chuzu"/>
      <van-grid-item icon="clock-o" text="看房记录" />
      <van-grid-item icon="credit-pay" text="成为房主" />
      <van-grid-item icon="manager-o" text="个人资料" />
      <van-grid-item icon="phone-o" text="联系我们" />
    </van-grid>
    <div class="foot">
        <img src="http://liufusong.top:8080/img/profile/join.png" alt="">
      </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.my-page {
  position: relative;
  min-height: 300px;
  position: relative;
  img {
    width: 100%;
  }
  .top {
    position: absolute;
    background: #fff;
    width: 85%;
    height: 55%;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px 3px #ddd;
    margin: 50px auto 0;
    padding: 0 20px;
    text-align: center;
    font-size: 13px;

    .touxiang {
      position: relative;
      transform: translateY(-50%);
      border-radius: 50%;
      width: 70px;
      height: 70px;
      border: 5px solid #f5f5f5;
      display: inline-block;
      box-shadow: 0 2px 2px #bdbdbd;
      img {
        width: 100%;
        border-radius: 50%;
      }
    }
    .user {
      padding-top: 15px;
      .user-name {
        margin-top: -30px;
        margin-bottom: 10px;
      }
      .login {
        width: 80px;
        height: 30px;
        border-radius: 5px;
        font-size: 13px;
      }
    }
  }
  .list{
    position: absolute;
    width: 100%;
    height: 100px;
    top:320px;
  }
  .foot{
    position: absolute;
    top:500px;
    left: 25px;
    img{
      width: 92%
    }
  }
}
</style>
